import request from '@/router/axios';

/**
 * 列表查询
 * @param params 参数
 * @returns {AxiosPromise}
 */
export const getList = (params) => {
  return request({
    url: '/api/policeCriminalInvestigation/page',
    method: 'get',
    params
  })
}

/**
 * 详情查询
 * @param id
 * @returns {AxiosPromise}
 */
export const getDetails = (id) => {
  return request({
    url: '/api/policeCriminalInvestigation/detail?id=' + id,
    method: 'get'
  })
}

/**
 * 新增修改
 * @param data
 * @returns {AxiosPromise}
 */
export const submit = (data) => {
  return request({
    url: '/api/policeCriminalInvestigation/submit',
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param ids
 * @returns {AxiosPromise}
 */
export const deleteCriminalInvestigation = (ids) => {
  return request({
    url: '/api/policeCriminalInvestigation/remove?ids=' + ids,
    method: 'post'
  })
}
